export default class Injector {
  constructor(obj) {
    this._strategy = obj.strategy;
    this._injector = obj.injector;
  }

  inject(props) {
    if (this._strategy(props)) {
      const newProps = this._injector(props);
      return newProps;
    }
    return props;
  }
}
